INCLUDE_DIRECTORIES(
${CMAKE_SOURCE_DIR}
${CMAKE_SOURCE_DIR}/scribus
)

SET(SHADOW_MOC_CLASSES
shadow.h
shadowimpl.h
)

SET(SHADOW_SOURCES
shadow.cpp
shadowimpl.cpp
)

SET(SCRIBUS_SHADOW "shadow")

QT4_WRAP_CPP(SHADOW_MOC_SOURCES ${SHADOW_MOC_CLASSES})

ADD_LIBRARY(${SCRIBUS_SHADOW} MODULE ${SHADOW_SOURCES} ${SHADOW_MOC_SOURCES})

TARGET_LINK_LIBRARIES(${SCRIBUS_SHADOW} ${PLUGIN_LIBRARIES})

INSTALL(TARGETS ${SCRIBUS_SHADOW}
  LIBRARY
  DESTINATION ${PLUGINDIR}
  PERMISSIONS ${PLUGIN_PERMISSIONS}
)

# SET_TARGET_PROPERTIES(${SCRIBUS_FONTPREVIEW_PLUGIN} PROPERTIES VERSION "0.0.0")
